import React, { Component } from 'react';

import './index.css';

class Item extends Component {
  /*constructor(){
    super();
    this.state={
        
    }
  }*/
  render() {
    return (
        <p className="Item" onClick={this.props.delItem}>{this.props.item}</p>
    );
  }
}
/*{
          this.state.list.map((item,index)=>{
            return <p key={index} onClick={this.delItem.bind(this)}>{item}</p>
          })
        }*/
export default Item;
